package day6;

import java.util.Scanner;

public class t5 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.print("请输入密码:");
        int mima = sc.nextInt();
        int []arr =new int[10];
        int i;
        for( i=0;mima!=0;i++){
            arr[i] =mima %10;
            mima/=10;
        }
        for(int k=0;k<i;k++){
            arr[k]+=5;
            arr[k]%=10;
        }
        for(int k=0;k<i;k++){
            System.out.print(arr[k]);
        }
    }
}
